<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>纯测试</title>
</head>
<body>
  
</body>
</html>
<script>

var l=5 ,d=[];
while(l--){

 (function(){  //有效数值 作用域写法
    var a=l;
        d[l]=function(){
            //  var a=l;
              console.log(a,a );
        };
 })();
 

};



</script>